//
//  RootClassOfNewTopic.m
//  Gift
//
//  Created by li cheng on 16/09/20
//  Copyright (c) Apon. All rights reserved.
//

#import "RootClassOfNewTopic.h"
#import "DataOfNewTopic.h"

@implementation RootClassOfNewTopic
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<DataOfNewTopic *> *mArrayOfDataOfNewTopic = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DataOfNewTopic *dataOfNewTopic = [DataOfNewTopic modelDic:dic];
            [mArrayOfDataOfNewTopic addObject:dataOfNewTopic];
        }
        _data = mArrayOfDataOfNewTopic;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [DataOfNewTopic class]};
}

@end
